home *** CD-ROM | disk | FTP | other *** search
- /*---------------------------------------------------------------------
-
- TODODLGS.CPP - part of TODO example program
-
- Copyright (c) 1991 by Borland International
- All Rights Reserved.
-
- ---------------------------------------------------------------------*/
-
- #if !defined( __WINDOWS_H )
- #include <Windows.h>
- #endif // __WINDOWS_H
-
- #if !defined( __String_H )
- #include <String.h>
- #endif // __STRING_H
-
- #if !defined( __NODDLGS_H )
- #include "NodDlgs.h"
- #endif
-
-
- /*---------------------------------------------------------------------
-
- member functions for class AboutBox.
-
- */
-
- LPSTR AboutBox::getDialogName()
- {
- return "AboutBox";
- }
-
- BOOL AboutBox::dispatch( HWND hDlg, WORD msg, WORD wParam, LONG lParam )
- {
- switch( msg )
- {
-
- case WM_INITDIALOG:
- return TRUE;
-
- case WM_COMMAND:
- if( wParam == IDOK || wParam == IDCANCEL )
- {
- EndDialog( hDlg, TRUE );
- return TRUE;
- }
-
- default:
-
- return ModalDialog::dispatch( hDlg, msg, wParam, lParam );
-
- }
- }
-
-
-
-